.class public Lcom/snowplowanalytics/snowplow/tracker/events/Structured;
.super Lcom/snowplowanalytics/snowplow/tracker/events/AbstractEvent;


# instance fields
.field private final action:Ljava/lang/String;

.field private final category:Ljava/lang/String;

.field private final label:Ljava/lang/String;

.field private final property:Ljava/lang/String;

.field private final value:Ljava/lang/Double;


# direct methods
.method protected constructor <init>(Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;)V
    .locals 4

    const/4 v1, 0x1

    const/4 v2, 0x0

    invoke-direct {p0, p1}, Lcom/snowplowanalytics/snowplow/tracker/events/AbstractEvent;-><init>(Lcom/snowplowanalytics/snowplow/tracker/events/AbstractEvent$Builder;)V

    # getter for: Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->category:Ljava/lang/String;
    invoke-static {p1}, Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->access$100(Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/snowplowanalytics/snowplow/tracker/utils/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;

    # getter for: Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->action:Ljava/lang/String;
    invoke-static {p1}, Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->access$200(Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/snowplowanalytics/snowplow/tracker/utils/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;

    # getter for: Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->category:Ljava/lang/String;
    invoke-static {p1}, Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->access$100(Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    move v0, v1

    :goto_0
    const-string v3, "category cannot be empty"

    invoke-static {v0, v3}, Lcom/snowplowanalytics/snowplow/tracker/utils/Preconditions;->checkArgument(ZLjava/lang/Object;)V

    # getter for: Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->action:Ljava/lang/String;
    invoke-static {p1}, Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->access$200(Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_1

    :goto_1
    const-string v0, "action cannot be empty"

    invoke-static {v1, v0}, Lcom/snowplowanalytics/snowplow/tracker/utils/Preconditions;->checkArgument(ZLjava/lang/Object;)V

    # getter for: Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->category:Ljava/lang/String;
    invoke-static {p1}, Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->access$100(Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/snowplowanalytics/snowplow/tracker/events/Structured;->category:Ljava/lang/String;

    # getter for: Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->action:Ljava/lang/String;
    invoke-static {p1}, Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->access$200(Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/snowplowanalytics/snowplow/tracker/events/Structured;->action:Ljava/lang/String;

    # getter for: Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->label:Ljava/lang/String;
    invoke-static {p1}, Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->access$300(Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/snowplowanalytics/snowplow/tracker/events/Structured;->label:Ljava/lang/String;

    # getter for: Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->property:Ljava/lang/String;
    invoke-static {p1}, Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->access$400(Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/snowplowanalytics/snowplow/tracker/events/Structured;->property:Ljava/lang/String;

    # getter for: Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->value:Ljava/lang/Double;
    invoke-static {p1}, Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;->access$500(Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;)Ljava/lang/Double;

    move-result-object v0

    iput-object v0, p0, Lcom/snowplowanalytics/snowplow/tracker/events/Structured;->value:Ljava/lang/Double;

    return-void

    :cond_0
    move v0, v2

    goto :goto_0

    :cond_1
    move v1, v2

    goto :goto_1
.end method

.method public static builder()Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder;
    .locals 2

    new-instance v0, Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder2;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/snowplowanalytics/snowplow/tracker/events/Structured$Builder2;-><init>(Lcom/snowplowanalytics/snowplow/tracker/events/Structured$1;)V

    return-object v0
.end method


# virtual methods
.method public bridge synthetic getPayload()Lcom/snowplowanalytics/snowplow/tracker/payload/Payload;
    .locals 1

    invoke-virtual {p0}, Lcom/snowplowanalytics/snowplow/tracker/events/Structured;->getPayload()Lcom/snowplowanalytics/snowplow/tracker/payload/TrackerPayload;

    move-result-object v0

    return-object v0
.end method

.method public getPayload()Lcom/snowplowanalytics/snowplow/tracker/payload/TrackerPayload;
    .locals 6

    new-instance v1, Lcom/snowplowanalytics/snowplow/tracker/payload/TrackerPayload;

    invoke-direct {v1}, Lcom/snowplowanalytics/snowplow/tracker/payload/TrackerPayload;-><init>()V

    const-string v0, "e"

    const-string v2, "se"

    invoke-virtual {v1, v0, v2}, Lcom/snowplowanalytics/snowplow/tracker/payload/TrackerPayload;->add(Ljava/lang/String;Ljava/lang/String;)V

    const-string v0, "se_ca"

    iget-object v2, p0, Lcom/snowplowanalytics/snowplow/tracker/events/Structured;->category:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Lcom/snowplowanalytics/snowplow/tracker/payload/TrackerPayload;->add(Ljava/lang/String;Ljava/lang/String;)V

    const-string v0, "se_ac"

    iget-object v2, p0, Lcom/snowplowanalytics/snowplow/tracker/events/Structured;->action:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Lcom/snowplowanalytics/snowplow/tracker/payload/TrackerPayload;->add(Ljava/lang/String;Ljava/lang/String;)V

    const-string v0, "se_la"

    iget-object v2, p0, Lcom/snowplowanalytics/snowplow/tracker/events/Structured;->label:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Lcom/snowplowanalytics/snowplow/tracker/payload/TrackerPayload;->add(Ljava/lang/String;Ljava/lang/String;)V

    const-string v0, "se_pr"

    iget-object v2, p0, Lcom/snowplowanalytics/snowplow/tracker/events/Structured;->property:Ljava/lang/String;

    invoke-virtual {v1, v0, v2}, Lcom/snowplowanalytics/snowplow/tracker/payload/TrackerPayload;->add(Ljava/lang/String;Ljava/lang/String;)V

    const-string v2, "se_va"

    iget-object v0, p0, Lcom/snowplowanalytics/snowplow/tracker/events/Structured;->value:Ljava/lang/Double;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/snowplowanalytics/snowplow/tracker/events/Structured;->value:Ljava/lang/Double;

    invoke-virtual {v0}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Double;->toString(D)Ljava/lang/String;

    move-result-object v0

    :goto_0
    invoke-virtual {v1, v2, v0}, Lcom/snowplowanalytics/snowplow/tracker/payload/TrackerPayload;->add(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p0, v1}, Lcom/snowplowanalytics/snowplow/tracker/events/Structured;->putDefaultParams(Lcom/snowplowanalytics/snowplow/tracker/payload/TrackerPayload;)Lcom/snowplowanalytics/snowplow/tracker/payload/TrackerPayload;

    move-result-object v0

    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
